package com.order.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("account-service")
public interface AccountService {

    @RequestMapping("/account/pay")
    public String pay(@RequestParam("userId") long userId, @RequestParam("money") BigDecimal money);
}
